import com.ruoyi.RuoYiApplication;
import com.ruoyi.project.system.school.domain.SchoolInfo2022Sum;
import com.ruoyi.project.system.school.mapper.SchoolInfoSum;
import com.ruoyi.project.system.volunteer.domain.FilingPlan;
import com.ruoyi.project.system.volunteer.domain.Piecebypiece;
import com.ruoyi.project.system.volunteer.mapper.VolunteerMapper2;
import com.ruoyi.project.system.volunteer.service.IVolunteerService2;
import com.ruoyi.project.system.volunteer.service.tool.SchoolTool;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

@SpringBootTest(classes = RuoYiApplication.class)
@RunWith(SpringRunner.class)
public class vunteer {
    @Autowired
    public VolunteerMapper2 volunteerMapper2;
    @Test
    public void pc(){
        Piecebypiece p = new Piecebypiece();
//        p.setScore("600");
        System.out.println(volunteerMapper2.getListScore(p));
    }
    @Test
    public  void onece(){
        FilingPlan f = new FilingPlan();
        f.setLowNumberPlans(862L);
        f.setLowNumberScore(0);
        System.out.println(f.getLowNumberPlans());
        System.out.println();
//        System.out.println(volunteerMapper2.Once(f));
        System.out.println(volunteerMapper2.Two(f));
    }
    @Autowired
    private SchoolTool schoolTool;
    @Autowired
    private IVolunteerService2 volunteerService2;
    @Test
    public  void  sp(){
        FilingPlan f = new FilingPlan();
        f.setLowNumberPlans(20L);
//        System.out.println( volunteerService2.simulation(f));
    }
    @Autowired
    private SchoolInfoSum schoolInfoSum;

    @Test
    public  void  ts(){
        SchoolInfo2022Sum s =new SchoolInfo2022Sum();
//        s.setSchoolCode("A646");
        s.setTheLowestRankingIn2020("166081");
        s.setTheLowestRankingIn2021("180991");
        s.setElectiveSubjectRequirements("物理");
//        s.setProfessionalCode("06");
        System.out.println(schoolInfoSum.School_info_list(s));

    }




}
